package com.zixuan.sina.service;

import com.zixuan.sina.entity.MessageLog;
import com.zixuan.sina.entity.UserRelactionShip;
import com.zixuan.sina.entity.vo.FriendVo;
import com.zixuan.sina.entity.vo.UserFriend;
import com.zixuan.sina.entity.vo.UserRelactionShipVo;
import com.zixuan.sina.utils.Result;

import java.util.List;

public interface UserReflectionShipService {
    Result listReflectShip(String userId,long start,long end);

    Result addFriend(UserRelactionShip userRelactionShip);

    Result applicationReflection(UserRelactionShip userRelactionShip);

    Result listFriendList(String userId, long start, long end);
    /**
     * 存储消息列表
     */
    void addMessage(MessageLog messageLog);

    Result getMessageById(String userId, String friendId);

    Result findFriendInfoById(String userId, String friendId);

    Result getApplicationListByUserId(String userId, int identify,int start,int end);

    Result getApplicationCount(String userId);

    Result handleApplication(UserRelactionShipVo userRelactionShipVo);

    Result isFriendRelation(String userId, String friendId);

    List<UserFriend> getFriendByUserId();

    List<MessageLog> getFriendMessage(Long friendId);

    List<FriendVo> listFriend(String key);
}
